package com.baosight.risk.api.rire;

import com.baosight.risk.base.entity.MultipleUpdateStatus;
import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.service.rire.entity.RireRiskEvent;
import com.baosight.risk.service.rire.vo.RireRiskEventVO;
import com.baosight.risk.service.xtzy.entity.XtzyUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RireRiskEventService extends BaseService<RireRiskEvent> {

    /**
     * 查询风险事件列表
     */

    List<RireRiskEvent> selectList(RireRiskEventVO rireRiskEvent, XtzyUser user);

    List<RireRiskEvent> checkEventList(RireRiskEvent rireRiskEvent);

    /**
     * 删除风险事件
     */
    Boolean deleteByIds(MultipleUpdateStatus updateStatus);

    /**
     * 新增风险事件
     */
    Integer saveRireEvent(List<RireRiskEvent> rireRiskEvents, XtzyUser user) throws Exception;

    /**
     * 更新风险事件
     */
    Integer updateRireEvent(RireRiskEvent rireRiskEvent);

    /**首页风险事件
     * @author HXJ
     * @Date 2021/04/26 10:46
     * @description
     * @param event
     * @param user
     * @return java.util.List<com.baosight.risk.service.rire.entity.RireRiskEvent>
     **/
    List<RireRiskEvent> getEventList(RireRiskEventVO event, XtzyUser user);

    /**
     * 重大风险事件库查询服务接口
     * @param rireRiskEventVO
     * @return
     */
    List<RireRiskEvent> queryRiskEventData(RireRiskEventVO rireRiskEventVO);
}
